<?php $this->pageTitle=Yii::app()->name . ' - List Properties'; ?>
<?php if (!Yii::app()->user->id) : ?>
<div class="padding-2">
    <div class="container_24">
        <div class="wrapper">
        	<article class="grid_8">
				<center><img src="<?php echo Yii::app()->theme->baseUrl ?>/images/medal.png" class="medal" /></center>
				<div class="clear"></div>
            	<div class="box title0">
                	<div class="box-padding8">
						<form id="saveform" class="commonform">
						<h5 class="custom-blue">How much could you save?*</h5>
							<label>Enter Closing Price</label>
							<input type="text" />
							<a class="button-1" href="list-prop1.html#" onClick="document.getElementById('saveform').submit()"><span class="txt">Calculate</span></a>
							<label class="large-label">6% Commission: <span>$18,000</span></label>
							<label class="small-label">*Traditional agent commission ranges from to 60%.<br/>
								Rates and fees may vary</label>
						</form>
                    </div>
                </div>
            </article>
            <article class="grid_16">
				<div class="box-padding4">
					<h5 class="custom-blue">Thank you for choosing to list your 	property with us!</h5>
					<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
					<br/><br/>
					Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
					<br/><br/>
					Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo
					<br/>
					<center class="big-button"><a class="button-1" href="<?php echo Yii::app()->createAbsoluteUrl('/site/register') ?>"><span class="txt">Sign up now</span></a></center>
					<br/>
					If you already have an account, please login, then select <a href="#">Add a Listing.</a>
					<br/><br/>
					<center class="big-button"><a class="button-1" href="<?php echo Yii::app()->createAbsoluteUrl('/site/login') ?>"><span class="txt">Login</span></a></center>
					</p>
				</div>
            </article>
        </div>
    </div>
</div>
<?php else : ?>
	<div class="padding">
		<div class="container_24">
			<div class="wrapper title0 commonform">
				<!--<form id="propertyform" method="post" enctype="multipart/form-data">-->
				<?php
				foreach(Yii::app()->user->getFlashes() as $key => $message) {
					echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
				}
				?>
				<?php $form=$this->beginWidget('CActiveForm', array(
					'id'=>'propertyform',
					'enableClientValidation'=>true,
					'clientOptions'=>array(
						'validateOnSubmit'=>true,
						'focus'=>array($model,'address','parking_space','bathrooms','bedrooms','description','price'),
						),
					'htmlOptions'=>array(
						'class'=>''
						)
						)); ?>
						<div class="jqtransform" >					
							<article class="grid_24">
								<h3 class="border-bot custom-blue h3-title">Property Infomation</h3>
								<p>Please detail your property infomation and features to create a professional online ad:</p>
						<!--<h5 class="custom-blue h3-title">Contact Infomation<span class="fright"><font color='e50c0c'>* Required field</font></span></h5>
						<div class="box box-padding">
							<fieldset>
								<div class="grid_11"><label for='full-name'>Full name: <span class="red">*</span></label><input type="text" name="full-name" id="full-name" /></div>
								<div class="grid_12 right"><label for='phone'>Phone: <span class="red">*</span></label><input type="text" name="phone" id="phone" /></div>
								<div class="grid_11" style="margin-bottom: 0px;">
									<label for='email'>Email: <span class="red">*</span></label><input type="text" name="email" id="email" />
								</div>
							</fieldset>	
						</div>
						<div class="clear"></div>-->
					</article>
					<article class="grid_24 single-line">
						<h5 class="custom-blue h3-title">Property Location<span class="fright"><font color='e50c0c'>* Required field</font></span></h5>
						<div class="box box-padding">
							<fieldset>
								<div class="grid_11">
									<label for='district'>District: <span class="red">*</span></label>
									<select id="district" class="">
										<option value="all">Select...</option>
										<?php foreach ($loc as $value): ?>
										<?php if ($value['status']==1): ?>
										<option value="1"><?php echo $value['title'] ?></option>
									<?php endif; ?>
								<?php endforeach; ?>
							</select>
						</div>
						<div class="grid_12 right">
							<!--<label for='address'>Address: </label><input type="text" name="address" id="address" />-->
							<?php echo $form->labelEx($model,'address', array('label' => 'Address:')); ?>
							<?php echo $form->textField($model,'address'); ?>
							<?php echo $form->error($model,'address', array('style' => 'color:red; padding-left: 165px;')); ?>
						</div>
					</fieldset>	
				</div>
				<div class="clear"></div>
			</article>
			<article class="grid_24">
				<h5 class="custom-blue h3-title">Description Of The Property<span class="fright"><font color='e50c0c'>* Required field</font></span></h5>
				<div class="box box-padding">
					<fieldset>
						<div class="grid_11">
							<label for='you'>You are the: <span class="red">*</span></label>
							<select id="you" class="">
								<option value="all">Select...</option>
								<?php foreach ($yat as $value): ?>
								<?php if($value['status']==1): ?>
								<option value="1"><?php echo $value['title'] ?></option>
							<?php endif;?>
						<?php endforeach; ?>
					</select>
				</div>
				<div class="grid_12 right">
					<label for='ytype'>Type of Property: <span class="red">*</span></label>
					<select id="ytype" class="">
						<option value="all">Select...</option>
						<?php foreach ($top as $value): ?>
						<?php if($value['status']==1): ?>
						<option value="1"><?php echo $value['title'] ?></option>
					<?php endif;?>
				<?php endforeach; ?>
			</select>
		</div>
		<div class="clear"></div>
		<div class="grid_11">
			<label for='property'>Property is for: <span class="red">*</span></label>
			<select id="property" class="">
				<option value="all">Select...</option>
				<?php foreach ($pif as $value): ?>
				<?php if($value['status']==1): ?>
				<option value="1"><?php echo $value['title'] ?></option>
			<?php endif;?>
		<?php endforeach; ?>
	</select>
</div>
<div class="grid_12 right">
	<label for='condominuim'>In Condominuim: <span class="red">*</span></label>
	<select id="condominuim" class="">
		<option value="all">Select...</option>
		<?php foreach ($ic as $value): ?>
		<?php if($value['status']==1): ?>
		<option value="1"><?php echo $value['title'] ?></option>
	<?php endif;?>
<?php endforeach; ?>
</select>
</div>
<div class="clear"></div>
<div class="dot-line"></div>
<div class="grid_11">
	<label for='size'>Lot Size: </label><input type="text" name="size" id="size" />
</div>
<div class="grid_12 right">
	<label for='Construction'>Construction Area: </label><input type="text" name="Construction" id="Construction" />
</div>
<div class="clear"></div>
<div class="dot-line"></div>
<div class="grid_11">
	<label for='size'># of Floors: </label><input type="text" name="size" id="size" />
</div>
<div class="grid_12 right">
	<!--<label for='Construction'># of Bedrooms: </label><input type="text" name="Construction" id="Construction" />-->
	<?php echo $form->labelEx($model,'bedrooms', array('label' => '# of Bedrooms: ')); ?>
	<?php echo $form->textField($model,'bedrooms'); ?>
	<?php echo $form->error($model,'bedrooms', array('style' => 'color:red; padding-left: 165px;')); ?>
</div>
<div class="grid_11">
	<!--<label for='size'># of Bathrooms: </label><input type="text" name="size" id="size" />-->
	<?php echo $form->labelEx($model,'bathrooms', array('label' => '# of Bathrooms: '));?><?php echo $form->textField($model,'bathrooms'); ?>
	<?php echo $form->error($model,'bathrooms', array('style' => 'color:red; padding-left: 165px;'));?>
</div>
<div class="grid_12 right">
	<!--<label for='Construction'>Parking Spaces: </label><input type="text" name="Construction" id="Construction" />-->
	<?php echo $form->labelEx($model,'parking_space', array('label' => 'Parking Spaces: ')); ?>
	<?php echo $form->textField($model,'parking_space'); ?>
	<?php echo $form->error($model,'parking_space', array('style' => 'color:red; padding-left: 165px;')); ?>
</div>
<div class="clear"></div>
<div class="dot-line"></div>
<!--<label for='size'>Detailed description of the property: <span class="red">*</span> </label>-->
	<?php echo $form->labelEx($model,'description', array('label' => 'Detailed description of the property: ')); ?>
	<?php echo $form->textarea($model,'description'); ?>
	<?php echo $form->error($model,'description', array('style' => 'color:red; padding-left: 165px;')); ?>
<!--<textarea></textarea>-->
</fieldset>	
</div>
<div class="clear"></div>
</article>
</div>
<div class="non-jqtransform">
	<article class="grid_24">
		<h5 class="custom-blue h3-title">Property And Community Details And Features</h5>
		<fieldset class="box box-padding">
			<div class="grid_8">
				<div class="rows"><input type="checkbox" /><label>Lorem ipsum dolor</label></div>
				<div class="rows"><input type="checkbox" /><label>Sit amet conse ctetur </label></div>
				<div class="rows"><input type="checkbox" /><label>Adipisicing elit</label></div>
				<div class="rows"><input type="checkbox" /><label>Sed do eiusmod tempor</label></div>
				<div class="rows"><input type="checkbox" /><label>Incididunt ut labore et</label></div>
				<div class="rows"><input type="checkbox" /><label>Dolore magna aliquat </label></div>
				<div class="rows"><input type="checkbox" /><label>Enim minim veniam qu</label></div>
			</div>
			<div class="grid_8">
				<div class="rows"><input type="checkbox" /><label>Lorem ipsum dolor</label></div>
				<div class="rows"><input type="checkbox" /><label>Sit amet conse ctetur </label></div>
				<div class="rows"><input type="checkbox" /><label>Adipisicing elit</label></div>
				<div class="rows"><input type="checkbox" /><label>Sed do eiusmod tempor</label></div>
				<div class="rows"><input type="checkbox" /><label>Incididunt ut labore et</label></div>
				<div class="rows"><input type="checkbox" /><label>Dolore magna aliquat </label></div>
				<div class="rows"><input type="checkbox" /><label>Enim minim veniam qu</label></div>
			</div>
			<div class="grid_7">
				<div class="rows"><input type="checkbox" /><label>Lorem ipsum dolor</label></div>
				<div class="rows"><input type="checkbox" /><label>Sit amet conse ctetur </label></div>
				<div class="rows"><input type="checkbox" /><label>Adipisicing elit</label></div>
				<div class="rows"><input type="checkbox" /><label>Sed do eiusmod tempor</label></div>
				<div class="rows"><input type="checkbox" /><label>Incididunt ut labore et</label></div>
				<div class="rows"><input type="checkbox" /><label>Dolore magna aliquat </label></div>
				<div class="rows"><input type="checkbox" /><label>Enim minim veniam qu</label></div>
			</div>
		</fieldset>
	</article>
</div>
<div class="jqtransform">
	<article class="grid_24 single-line">
		<h5 class="custom-blue h3-title">Financial Infomation<span class="fright"><font color='e50c0c'>* Required field</font></span></h5>
		<div class="box box-padding">
			<fieldset>
				<!--<div class="grid_11"><label for='sale-price'>Sale Price SGD: </label><input type="text" name="sale-price" id="sale-price" /></div>-->
				<?php echo $form->labelEx($model,'price', array('label' => 'Sale Price SGD: ')); ?>
				<?php echo $form->textField($model,'price'); ?>
				<?php echo $form->error($model,'price', array('style' => 'color:red; padding-left: 165px;')); ?>
				<!--<div class="grid_12 right"><label for='rent'>Rent Price SGD: </label><input type="text" name="rent" id="rent" /></div>-->
			</fieldset>	
		</div>
		<div class="clear"></div>
	</article>
</div>
<div class="non-jqtransform">
	<article class="grid_24 single-line">
		<h5 class="custom-blue h3-title">Additional Comments</h5>
		<div class="box box-padding">
			<fieldset>
				<p>Please indicate any additional comment.</p>
				<textarea class="large-ta"></textarea>
			</fieldset>	
		</div>
		<div class="clear"></div>
	</article>
	<article class="grid_24 submit-button">
		<a class="button-1 button-cancel" href="#" onClick="document.getElementById('register-form').submit()"><span class="txt">Cancel</span></a>
		<a class="button-1" onClick="document.getElementById('propertyform').submit()"><span class="txt">Save and Continue</span></a>
	</article>
</div>
<?php $this->endWidget(); ?>
<!--</form>-->
</div>
</div>
</div>
<?php endif; ?>